package cn.stylefeng.guns.modular.system.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 车辆表
 * </p>
 *
 * @author lst
 * @since 2018-12-07
 */
@TableName("sys_car")
public class Car implements Serializable{
    /**
     * 车辆id
     */
    @TableId(value = "CAR_ID", type = IdType.ID_WORKER)
    private Long carId;
    /**
     * 车辆型号
     */
    @TableField(value = "CAR_TYPE")
    private String carType;
    /**
     * 车辆颜色
     */
    @TableField(value = "CAR_COLOR")
    private String carColor;
    /**
     * 是否过了最新的年检， 是1 否0
     */
    @TableField(value = "CAR_INSPECTION")
    private Integer carInspection;
    /**
     * 车辆里程KM单位
     */
    @TableField(value = "CAR_MILEAGE")
    private Long carMileage;
    /**
     * 租金
     */
    @TableField(value = "RENT_MONEY_ONE_DAY")
    private Integer rentMoneyOneDay;
    public Integer getRentMoneyOneDay() {
        return rentMoneyOneDay;
    }
    public void setRentMoneyOneDay(Integer rentMoneyOneDay) {
        if (rentMoneyOneDay == null) rentMoneyOneDay = 100;
        this.rentMoneyOneDay = rentMoneyOneDay;
    }
    /**
     * 维修记录ID
     */
    @TableField(value = "MODIFY_ID")
    private Long modifyId;
    /**
     * 罚单记录
     */
    @TableField(value = "TICKET_ID")
    private Long ticketId;
    /**
     * 被租赁次数
     */
    @TableField("RENT_TIMES")
    private Integer rentTimes;
    /**
     * 车辆评分
     */
    @TableField(value = "CAR_SCORE")
    private Float carScore;

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }
    /**
     * 车辆价格
     */
    @TableField("CAR_PRICE")
    private Double carPrice;

    public Double getCarPrice() {
        return carPrice;
    }

    public void setCarPrice(Double carPrice) {
        this.carPrice = carPrice;
    }
    /**
     * 是否已经被预约
     */
    @TableField("IS_ORDER")
    private Integer isOrder;

    public Integer getIsOrder() {
        return isOrder;
    }

    public void setIsOrder(Integer isOrder) {
        this.isOrder = isOrder;
    }
    /**
     * 是否已经被租赁
     */
    @TableField("IS_RENT")
    private Integer isRent;

    public Integer getIsRent() {
        return isRent;
    }

    public void setIsRent(Integer isRent) {
        this.isRent = isRent;
    }

    /**
     * 作用于逻辑删除
     */
    @TableField(value = "IS_DEL")
    private Integer isDel;

    /**
     * 车辆图片
     */
    @TableField(value = "CAR_IMG")
    private String carImg;

    public String getCarImg() {
        return carImg;
    }

    public void setCarImg(String carImg) {
        this.carImg = carImg;
    }

    public Long getCarId() {
        return carId;
    }

    public void setCarId(Long carId) {
        this.carId = carId;
    }

    public String getCarType() {
        return carType;
    }

    public void setCarType(String carType) {
        this.carType = carType;
    }

    public String getCarColor() {
        return carColor;
    }

    public void setCarColor(String carColor) {
        this.carColor = carColor;
    }

    public Integer getCarInspection() {
        return carInspection;
    }

    public void setCarInspection(Integer carInspection) {
        this.carInspection = carInspection;
    }

    public Long getCarMileage() {
        if (carMileage == null) carMileage = 0L;
        return carMileage;
    }

    public void setCarMileage(Long carMileage) {
        this.carMileage = carMileage;
    }

    public Long getModifyId() {
        return modifyId;
    }

    public void setModifyId(Long modifyId) {
        this.modifyId = modifyId;
    }
    public Long getTicketId() {
        return ticketId;
    }

    public void setTicketId(Long ticketId) {
        this.ticketId = ticketId;
    }
    public Integer getRentTimes() {
        return rentTimes;
    }

    public void setRentTimes(Integer rentTimes) {
        this.rentTimes = rentTimes;
    }

    public Float getCarScore() {
        return carScore;
    }

    public void setCarScore(Float carScore) {
        this.carScore = carScore;
    }
}
